package com.site.wisdom_construction.service.trainingCheckModule;

import com.site.wisdom_construction.dao.trainingCheckModule.ExamQuestionsDao;
import com.site.wisdom_construction.entity.trainingCheckModule.ExamQuestions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/17
 * @Description
 */
@Service
public class ExamQuestionsService implements ExamQuestionsDao {
    @Autowired
    private ExamQuestionsDao examQuestionsDao;

    @Override
    public int insertExamQuestions(Map map) {
        return examQuestionsDao.insertExamQuestions(map);
    }

    @Override
    public int deleteExamQuestions(Map map) {
        return examQuestionsDao.deleteExamQuestions(map);
    }

    @Override
    public int updateExamQuestions(Map map) {
        return examQuestionsDao.updateExamQuestions(map);
    }

    @Override
    public List<ExamQuestions> findExamQuestionsByPage(Map map) {
        return examQuestionsDao.findExamQuestionsByPage(map);
    }

    @Override
    public long Total(Map map) {
        return examQuestionsDao.Total(map);
    }

    @Override
    public Integer countExamQuestions(Map map) {
        return examQuestionsDao.countExamQuestions(map);
    }

    @Override
    public ExamQuestions findExamQuestionsById(Map map) {
        return examQuestionsDao.findExamQuestionsById(map);
    }

    @Override
    public List<Integer> findExamQuestionsByChoice(Map map) {
        return examQuestionsDao.findExamQuestionsByChoice(map);
    }

    @Override
    public List<Integer> findExamQuestionsByMultipleChoice(Map map) {
        return examQuestionsDao.findExamQuestionsByMultipleChoice(map);
    }

    @Override
    public List<Integer> findExamQuestionsByTrue(Map map) {
        return examQuestionsDao.findExamQuestionsByTrue(map);
    }

    @Override
    public List<Integer> findExamQuestionsByGap(Map map) {
        return examQuestionsDao.findExamQuestionsByGap(map);
    }
}
